{%- set num = reset_UuidNum() -%}
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<AUTOSAR xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://autosar.org/schema/r4.0 AUTOSAR_00046.xsd">
  <AR-PACKAGES>
    <AR-PACKAGE UUID="{{gen_uuid()}}">
      <SHORT-NAME>AUTOSAR</SHORT-NAME>
      <AR-PACKAGES>
        <AR-PACKAGE UUID="{{gen_uuid()}}">
          <SHORT-NAME>NvM_swc</SHORT-NAME>
          <AR-PACKAGES>
            <AR-PACKAGE UUID="{{gen_uuid()}}">
              <SHORT-NAME>DataTypes</SHORT-NAME>
              <ELEMENTS>
                {%- set data_types_elements_list =  nvm_package["datatypes_pkg"]["elements"]%}
                {%- for data_types_element in data_types_elements_list %}
                <IMPLEMENTATION-DATA-TYPE UUID="{{gen_uuid()}}">
                  <SHORT-NAME>{{data_types_element["short_name"]}}</SHORT-NAME>
                  {%- if data_types_element["category"] == "Type" %}
                  <CATEGORY>TYPE_REFERENCE</CATEGORY>
                  {%- elif data_types_element["category"] == "Array" %}
                  <CATEGORY>ARRAY</CATEGORY>
                  {%- elif data_types_element["category"] == "Structure" %}
                  <CATEGORY>STRUCTURE</CATEGORY>
                  {%- endif %}
                  <SW-DATA-DEF-PROPS>
                    <SW-DATA-DEF-PROPS-VARIANTS>
                      <SW-DATA-DEF-PROPS-CONDITIONAL>
                        {%- if "compu_method_ref" in data_types_element["sw_data_def"].keys()%}
                        <COMPU-METHOD-REF DEST="COMPU-METHOD">/AUTOSAR/NvM_swc/DataTypes/CompuMethods/{{data_types_element["sw_data_def"]["compu_method_ref"]}}</COMPU-METHOD-REF>
                        {%- endif %}
                        {%- if "data_constr_ref" in data_types_element["sw_data_def"].keys()%}
                        <DATA-CONSTR-REF DEST="DATA-CONSTR">/AUTOSAR/NvM_swc/DataTypes/DataConstrs/{{data_types_element["sw_data_def"]["data_constr_ref"]}}</DATA-CONSTR-REF>
                        {%- endif %}
                        {%- if "implementation_data_type" in data_types_element["sw_data_def"].keys()%}
                        {%- if data_types_element["sw_data_def"]["IsType"]|lower == "false" %}
                        <IMPLEMENTATION-DATA-TYPE-REF DEST="IMPLEMENTATION-DATA-TYPE">/AUTOSAR_Platform/ImplementationDataTypes/{{data_types_element["sw_data_def"]["implementation_data_type"]}}</IMPLEMENTATION-DATA-TYPE-REF>
                        {%- else %}
                        <IMPLEMENTATION-DATA-TYPE-REF DEST="IMPLEMENTATION-DATA-TYPE">/AUTOSAR/NvM_swc/DataTypes/{{data_types_element["sw_data_def"]["implementation_data_type"]}}</IMPLEMENTATION-DATA-TYPE-REF>
                        {%- endif %}
                        {%- endif %}
                        {%- if "calibration_access" in data_types_element["sw_data_def"].keys()%}
                        <SW-CALIBRATION-ACCESS>{{data_types_element["sw_data_def"]["calibration_access"]}}</SW-CALIBRATION-ACCESS>
                        {%- endif %}
                      </SW-DATA-DEF-PROPS-CONDITIONAL>
                    </SW-DATA-DEF-PROPS-VARIANTS>
                  </SW-DATA-DEF-PROPS>
                </IMPLEMENTATION-DATA-TYPE>
                {%- endfor %}
              </ELEMENTS>
              <AR-PACKAGES>
                <AR-PACKAGE UUID="{{gen_uuid()}}">
                  <SHORT-NAME>DataConstrs</SHORT-NAME>
                  <ELEMENTS>
                    {%- set data_types_constrs_list =  nvm_package["datatypes_pkg"]["data_constrs"]["elements"]%}
                    {%- for data_types_constr in data_types_constrs_list %}
                    <DATA-CONSTR UUID="{{gen_uuid()}}">
                      <SHORT-NAME>{{data_types_constr["short_name"]}}</SHORT-NAME>
                      <DATA-CONSTR-RULES>
                        <DATA-CONSTR-RULE>
                          <INTERNAL-CONSTRS>
                            <LOWER-LIMIT INTERVAL-TYPE="CLOSED">{{data_types_constr["data_constr_rules"][0]["internal_consters"]["lower_limit"]}}</LOWER-LIMIT>
                            <UPPER-LIMIT INTERVAL-TYPE="CLOSED">{{data_types_constr["data_constr_rules"][0]["internal_consters"]["upper_limit"]}}</UPPER-LIMIT>
                          </INTERNAL-CONSTRS>
                        </DATA-CONSTR-RULE>
                      </DATA-CONSTR-RULES>
                    </DATA-CONSTR>
                    {%- endfor %}
                  </ELEMENTS>
                </AR-PACKAGE>
                <AR-PACKAGE UUID="{{gen_uuid()}}">
                  <SHORT-NAME>CompuMethods</SHORT-NAME>
                  <ELEMENTS>
                    {%- set data_types_compu_list =  nvm_package["datatypes_pkg"]["compu_methods"]["elements"]%}
                    {%- for data_types_compu in data_types_compu_list %}
                    <COMPU-METHOD UUID="{{gen_uuid()}}">
                      <SHORT-NAME>{{data_types_compu["short_name"]}}</SHORT-NAME>
                      <CATEGORY>TEXTTABLE</CATEGORY>
                      <COMPU-INTERNAL-TO-PHYS>
                        <COMPU-SCALES>
                          {%- for compu_scale in data_types_compu["compu_scales"] %}
                          <COMPU-SCALE>
                            <SHORT-LABEL>{{compu_scale["short_label"]}}</SHORT-LABEL>
                            <LOWER-LIMIT INTERVAL-TYPE="CLOSED">{{compu_scale["lower_limit"]}}</LOWER-LIMIT>
                            <UPPER-LIMIT INTERVAL-TYPE="CLOSED">{{compu_scale["upper_limit"]}}</UPPER-LIMIT>
                            <COMPU-CONST>
                              <VT>{{compu_scale["short_label"]}}</VT>
                            </COMPU-CONST>
                          </COMPU-SCALE>
                          {%- endfor %}
                        </COMPU-SCALES>
                      </COMPU-INTERNAL-TO-PHYS>
                    </COMPU-METHOD>
                    {%- endfor %}
                  </ELEMENTS>
                </AR-PACKAGE>
              </AR-PACKAGES>
            </AR-PACKAGE>
            {%- set interfaces_pkg = nvm_package["interfaces_pkg"] %}
            <AR-PACKAGE UUID="{{gen_uuid()}}">
              <SHORT-NAME>Interfaces</SHORT-NAME>
              <ELEMENTS>
                {%- set mode_switch_interfaces_list = interfaces_pkg["mode_switch"]%}
                {%- set client_server_interfaces_list = interfaces_pkg["client_server"]%}
                {%- if mode_switch_interfaces_list|length > 0 %}
                {%- for mode_switch_interface in mode_switch_interfaces_list %}
                <MODE-SWITCH-INTERFACE UUID="{{gen_uuid()}}">
                  <SHORT-NAME>{{mode_switch_interface["short_name"]}}</SHORT-NAME>
                  <IS-SERVICE>{{mode_switch_interface["is_server"]|lower}}</IS-SERVICE>
                  <SERVICE-KIND>NON-VOLATILE-RAM-MANAGER</SERVICE-KIND>
                  <MODE-GROUP UUID="{{gen_uuid()}}">
                    <SHORT-NAME>{{mode_switch_interface["prototype"]}}</SHORT-NAME>
                    <TYPE-TREF DEST="MODE-DECLARATION-GROUP">/AUTOSAR/NvM_swc/{{mode_switch_interface["mode_group"]}}</TYPE-TREF>
                  </MODE-GROUP>
                </MODE-SWITCH-INTERFACE>
                {%- endfor %}
                {%- endif %}

                {%- if client_server_interfaces_list|length > 0 %}
                {%- for client_server_interface in client_server_interfaces_list %}
                <CLIENT-SERVER-INTERFACE UUID="{{gen_uuid()}}">
                  <SHORT-NAME>{{client_server_interface["short_name"]}}</SHORT-NAME>
                  <IS-SERVICE>{{client_server_interface["is_server"]|lower}}</IS-SERVICE>
                  <SERVICE-KIND>NON-VOLATILE-RAM-MANAGER</SERVICE-KIND>
                  <OPERATIONS>
                    {%- set interface_operations_list =  client_server_interface["operations"] %}
                    {%- for interface_operation in interface_operations_list %}
                    <CLIENT-SERVER-OPERATION UUID="{{gen_uuid()}}">
                      <SHORT-NAME>{{interface_operation["short_name"]}}</SHORT-NAME>
                      <DESC>
                        <L-2 L="FOR-ALL"/>
                      </DESC>
                      <ARGUMENTS>
                        {%- if "arguments" in interface_operation.keys() %}
                        {%- set operation_arguments_list = interface_operation["arguments"]%}
                        {%- for operation_argument in operation_arguments_list %}
                        <ARGUMENT-DATA-PROTOTYPE UUID="{{gen_uuid()}}">
                          <SHORT-NAME>{{operation_argument["short_name"]}}</SHORT-NAME>
                          <DESC>
                            <L-2 L="FOR-ALL"/>
                          </DESC>
                          {%- if operation_argument["IsType"]|lower == "true" %}
                          <TYPE-TREF DEST="IMPLEMENTATION-DATA-TYPE">/AUTOSAR/NvM_swc/DataTypes/{{operation_argument["TypeTref"]}}</TYPE-TREF>
                          {%- else %}
                          <TYPE-TREF DEST="IMPLEMENTATION-DATA-TYPE">/AUTOSAR_Platform/ImplementationDataTypes/{{operation_argument["TypeTref"]}}</TYPE-TREF>
                          {%- endif %}
                          <DIRECTION>{{operation_argument["Direction"]}}</DIRECTION>
                        </ARGUMENT-DATA-PROTOTYPE>
                        {%- endfor %}
                        {%- endif %}
                      </ARGUMENTS>
                      <POSSIBLE-ERROR-REFS>
                        {%- set error_refs_list = interface_operation["possible_errors"]%}
                        {%- for error_ref in error_refs_list %}
                        <POSSIBLE-ERROR-REF DEST="APPLICATION-ERROR">/AUTOSAR/NvM_swc/Interfaces/{{client_server_interface["short_name"]}}/{{error_ref}}</POSSIBLE-ERROR-REF>
                        {%- endfor %}
                      </POSSIBLE-ERROR-REFS>
                    </CLIENT-SERVER-OPERATION>
                    {%- endfor %}
                  </OPERATIONS>
                  <POSSIBLE-ERRORS>
                    {%- set possible_errors_list =  client_server_interface["possible_errors"] %}
                    {%- for possible_error in possible_errors_list %}
                    <APPLICATION-ERROR UUID="{{gen_uuid()}}">
                      <SHORT-NAME>{{possible_error["short_name"]}}</SHORT-NAME>
                      <ERROR-CODE>{{possible_error["error_code"]}}</ERROR-CODE>
                    </APPLICATION-ERROR>
                    {%- endfor %}
                  </POSSIBLE-ERRORS>
                </CLIENT-SERVER-INTERFACE>
                {%- endfor %}
                {%- endif %}
              </ELEMENTS>
            </AR-PACKAGE>

            {%- set componenttypes_pkg = nvm_package["componenttypes_pkg"] %}
            {%- set main_function = componenttypes_pkg["main_function"] %}
            <AR-PACKAGE UUID="{{gen_uuid()}}">
              <SHORT-NAME>ComponentTypes</SHORT-NAME>
              <ELEMENTS>
                <SERVICE-SW-COMPONENT-TYPE UUID="{{gen_uuid()}}">
                  <SHORT-NAME>NvM</SHORT-NAME>
                  <CATEGORY>SERVICE_COMPONENT</CATEGORY>
                  <PORTS>
                    {%- set pports_list = componenttypes_pkg["pports"] %}
                    {%- if pports_list|length > 0 %}
                    {%- for pport in pports_list %}
                    <P-PORT-PROTOTYPE UUID="{{gen_uuid()}}">
                    <SHORT-NAME>{{pport["short_name"]}}</SHORT-NAME>
                    {%- if pport["interface_type"] == "client_server" %}
                    <PROVIDED-INTERFACE-TREF DEST="CLIENT-SERVER-INTERFACE">/AUTOSAR/NvM_swc/Interfaces/{{pport["interface_ref"]}}</PROVIDED-INTERFACE-TREF>
                    {%- elif pport["interface_type"] == "sender_receiver" %}
                    <PROVIDED-INTERFACE-TREF DEST="SENDER-RECEIVER-INTERFACE">/AUTOSAR/NvM_swc/Interfaces/{{pport["interface_ref"]}}</PROVIDED-INTERFACE-TREF>
                    {%- elif pport["interface_type"] == "mode_switch" %}
                    <PROVIDED-INTERFACE-TREF DEST="MODE-SWITCH-INTERFACE">/AUTOSAR/NvM_swc/Interfaces/{{pport["interface_ref"]}}</PROVIDED-INTERFACE-TREF>
                    {%- endif %}
                    </P-PORT-PROTOTYPE>
                    {%- endfor %}
                    {%- endif %}

                    {%- set rports_list = componenttypes_pkg["rports"] %}
                    {%- if rports_list|length > 0 %}
                    {%- for rport in rports_list %}
                    <R-PORT-PROTOTYPE UUID="{{gen_uuid()}}">
                    <SHORT-NAME>{{rport["short_name"]}}</SHORT-NAME>
                    {%- if rport["interface_type"] == "client_server" %}
                    <REQUIRED-INTERFACE-TREF DEST="CLIENT-SERVER-INTERFACE">/AUTOSAR/NvM_swc/Interfaces/{{rport["interface_ref"]}}</REQUIRED-INTERFACE-TREF>
                    {%- elif rport["interface_type"] == "sender_receiver" %}
                    <REQUIRED-INTERFACE-TREF DEST="SENDER-RECEIVER-INTERFACE">/AUTOSAR/NvM_swc/Interfaces/{{rport["interface_ref"]}}</REQUIRED-INTERFACE-TREF>
                    {%- elif rport["interface_type"] == "mode_switch" %}
                    <REQUIRED-INTERFACE-TREF DEST="MODE-SWITCH-INTERFACE">/AUTOSAR/NvM_swc/Interfaces/{{rport["interface_ref"]}}</REQUIRED-INTERFACE-TREF>
                    {%- endif %}
                    </R-PORT-PROTOTYPE>
                    {%- endfor %}
                    {%- endif %}
                  </PORTS>
                  <INTERNAL-BEHAVIORS>
                    <SWC-INTERNAL-BEHAVIOR UUID="{{gen_uuid()}}">
                      <SHORT-NAME>NvMInternalBehavior</SHORT-NAME>
                      <EVENTS>
                        <TIMING-EVENT UUID="{{gen_uuid()}}">
                          <SHORT-NAME>Timer_NvM_MainFunction</SHORT-NAME>
                          <START-ON-EVENT-REF DEST="RUNNABLE-ENTITY">/AUTOSAR/NvM_swc/ComponentTypes/NvM/NvMInternalBehavior/nvm_mainfunction</START-ON-EVENT-REF>
                          <PERIOD>{{main_function["period"]}}</PERIOD>
                        </TIMING-EVENT>

                        {%- set operation_events_list = componenttypes_pkg["operation_events"] %}
                        {%- if operation_events_list|length > 0 %}
                        {%- for operation_event in operation_events_list %}
                        <OPERATION-INVOKED-EVENT UUID="{{gen_uuid()}}">
                          <SHORT-NAME>{{operation_event["short_name"]}}</SHORT-NAME>
                          <START-ON-EVENT-REF DEST="RUNNABLE-ENTITY">/AUTOSAR/NvM_swc/ComponentTypes/NvM/NvMInternalBehavior/{{operation_event["start_on_event_ref"]}}</START-ON-EVENT-REF>
                          <OPERATION-IREF>
                            <CONTEXT-P-PORT-REF DEST="P-PORT-PROTOTYPE">/AUTOSAR/NvM_swc/ComponentTypes/NvM/{{operation_event["pport_ref"]}}</CONTEXT-P-PORT-REF>
                            <TARGET-PROVIDED-OPERATION-REF DEST="CLIENT-SERVER-OPERATION">/AUTOSAR/NvM_swc/Interfaces/{{operation_event["interface_ref"]}}/{{operation_event["operation_ref"]}}</TARGET-PROVIDED-OPERATION-REF>
                        </OPERATION-IREF>
                        </OPERATION-INVOKED-EVENT>
                        {%- endfor %}
                        {%- endif %}
                      </EVENTS>
                      <HANDLE-TERMINATION-AND-RESTART>NO-SUPPORT</HANDLE-TERMINATION-AND-RESTART>
                      <INCLUDED-DATA-TYPE-SETS>
                        <INCLUDED-DATA-TYPE-SET>
                          <DATA-TYPE-REFS>
                            <DATA-TYPE-REF DEST="IMPLEMENTATION-DATA-TYPE">/AUTOSAR/NvM_swc/DataTypes/nvm_request_result_type</DATA-TYPE-REF>
                            <DATA-TYPE-REF DEST="IMPLEMENTATION-DATA-TYPE">/AUTOSAR/NvM_swc/DataTypes/nvm_block_id_t</DATA-TYPE-REF>
                            <DATA-TYPE-REF DEST="IMPLEMENTATION-DATA-TYPE">/AUTOSAR/NvM_swc/DataTypes/NvM_InitBlockRequestType</DATA-TYPE-REF>
                            <DATA-TYPE-REF DEST="IMPLEMENTATION-DATA-TYPE">/AUTOSAR/NvM_swc/DataTypes/NvM_BlockRequestType</DATA-TYPE-REF>
                          </DATA-TYPE-REFS>
                        </INCLUDED-DATA-TYPE-SET>
                      </INCLUDED-DATA-TYPE-SETS>

                      <PORT-API-OPTIONS>
                        {%- if pports_list|length > 0 %}
                        {%- for pport in pports_list %}
                        <PORT-API-OPTION>
                          <ENABLE-TAKE-ADDRESS>true</ENABLE-TAKE-ADDRESS>
                          <INDIRECT-API>false</INDIRECT-API>
                          {%- if pport["argument"] %}
                          <PORT-ARG-VALUES>
                            <PORT-DEFINED-ARGUMENT-VALUE>
                              <VALUE>
                                <NUMERICAL-VALUE-SPECIFICATION>
                                  <VALUE>{{pport["argument"]["value"]}}</VALUE>
                                </NUMERICAL-VALUE-SPECIFICATION>
                              </VALUE>
                              <VALUE-TYPE-TREF DEST="IMPLEMENTATION-DATA-TYPE">/AUTOSAR/NvM_swc/DataTypes/{{pport["argument"]["type"]}}</VALUE-TYPE-TREF>
                            </PORT-DEFINED-ARGUMENT-VALUE>
                          </PORT-ARG-VALUES>
                          {%- endif %}
                          <PORT-REF DEST="P-PORT-PROTOTYPE">/AUTOSAR/NvM_swc/ComponentTypes/NvM/{{pport["short_name"]}}</PORT-REF>
                        </PORT-API-OPTION>
                        {%- endfor %}
                        {%- endif %}
                        {%- if rports_list|length > 0 %}
                        {%- for rport in rports_list %}
                        <PORT-API-OPTION>
                          <ENABLE-TAKE-ADDRESS>true</ENABLE-TAKE-ADDRESS>
                          <INDIRECT-API>false</INDIRECT-API>
                          <PORT-REF DEST="R-PORT-PROTOTYPE">/AUTOSAR/NvM_swc/ComponentTypes/NvM/{{rport["short_name"]}}</PORT-REF>
                        </PORT-API-OPTION>
                        {%- endfor %}
                        {%- endif %}
                      </PORT-API-OPTIONS>

                      <RUNNABLES>
                        <RUNNABLE-ENTITY UUID="{{gen_uuid()}}">
                          <SHORT-NAME>nvm_mainfunction</SHORT-NAME>
                          <MINIMUM-START-INTERVAL>0</MINIMUM-START-INTERVAL>
                          <CAN-BE-INVOKED-CONCURRENTLY>false</CAN-BE-INVOKED-CONCURRENTLY>

                          {%- set mode_switch_points = main_function["mode_switch_points"] %}
                          {%- if mode_switch_points|length > 0 %}
                          <MODE-SWITCH-POINTS>
                              {%- for mode_switch_point in mode_switch_points %}
                              <MODE-SWITCH-POINT UUID="{{gen_uuid()}}">
                                <SHORT-NAME>{{mode_switch_point["short_name"]}}</SHORT-NAME>
                                <MODE-GROUP-IREF>
                                    <CONTEXT-P-PORT-REF DEST="P-PORT-PROTOTYPE">/AUTOSAR/NvM_swc/ComponentTypes/NvM/{{mode_switch_point["port_ref"]}}</CONTEXT-P-PORT-REF>
                                    <TARGET-MODE-GROUP-REF DEST="MODE-DECLARATION-GROUP-PROTOTYPE">/AUTOSAR/NvM_swc/Interfaces/{{mode_switch_point["interface_ref"]}}/{{mode_switch_point["prototype_ref"]}}</TARGET-MODE-GROUP-REF>
                                </MODE-GROUP-IREF>
                              </MODE-SWITCH-POINT>
                              {%- endfor %}
                          </MODE-SWITCH-POINTS>
                          {%- endif %}

                          {%- set server_call_points = main_function["server_call_points"] %}
                          {%- if server_call_points|length > 0 %}
                          <SERVER-CALL-POINTS>
                              {%- for server_call_point in server_call_points %}
                              <SYNCHRONOUS-SERVER-CALL-POINT UUID="{{gen_uuid()}}">
                              <SHORT-NAME>{{server_call_point["short_name"]}}</SHORT-NAME>
                              <OPERATION-IREF>
                                  <CONTEXT-R-PORT-REF DEST="R-PORT-PROTOTYPE">/AUTOSAR/NvM_swc/ComponentTypes/NvM/{{server_call_point["port_ref"]}}</CONTEXT-R-PORT-REF>
                                  <TARGET-REQUIRED-OPERATION-REF DEST="CLIENT-SERVER-OPERATION">/AUTOSAR/NvM_swc/Interfaces/{{server_call_point["interface_ref"]}}/{{server_call_point["operation_ref"]}}</TARGET-REQUIRED-OPERATION-REF>
                              </OPERATION-IREF>
                              <TIMEOUT>0</TIMEOUT>
                              </SYNCHRONOUS-SERVER-CALL-POINT>
                              {%- endfor %}
                          </SERVER-CALL-POINTS>
                          {%- endif %}
                          <SYMBOL>nvm_mainfunction</SYMBOL>
                        </RUNNABLE-ENTITY>

                        {%- set server_runnables_list = componenttypes_pkg["server_runnables"] %}
                        {%- for server_runnable in server_runnables_list %}
                        <RUNNABLE-ENTITY UUID="{{gen_uuid()}}">
                        <SHORT-NAME>{{server_runnable["short_name"]}}</SHORT-NAME>
                        <MINIMUM-START-INTERVAL>0</MINIMUM-START-INTERVAL>
                        <CAN-BE-INVOKED-CONCURRENTLY>true</CAN-BE-INVOKED-CONCURRENTLY>
                        <SYMBOL>{{server_runnable["symbol"]}}</SYMBOL>
                        </RUNNABLE-ENTITY>
                        {%- endfor %}
                      </RUNNABLES>
                      <SUPPORTS-MULTIPLE-INSTANTIATION>false</SUPPORTS-MULTIPLE-INSTANTIATION>
                    </SWC-INTERNAL-BEHAVIOR>
                  </INTERNAL-BEHAVIORS>
                </SERVICE-SW-COMPONENT-TYPE>
                <SWC-IMPLEMENTATION UUID="a7ad36d3-cca2-41b0-aebc-787ad2e66c18">
                  <SHORT-NAME>NvMImplementation</SHORT-NAME>
                  <PROGRAMMING-LANGUAGE>C</PROGRAMMING-LANGUAGE>
                  <BEHAVIOR-REF DEST="SWC-INTERNAL-BEHAVIOR">/AUTOSAR/NvM_swc/ComponentTypes/NvM/NvMInternalBehavior</BEHAVIOR-REF>
                </SWC-IMPLEMENTATION>
              </ELEMENTS>
            </AR-PACKAGE>
          </AR-PACKAGES>
        </AR-PACKAGE>
      </AR-PACKAGES>
    </AR-PACKAGE>
  </AR-PACKAGES>
</AUTOSAR>
